package com.yxn.services.impl;

import com.yxn.dao.IUserDao;
import com.yxn.entity.TblUser;
import com.yxn.services.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by yanxi on 2018/1/13 0013.
 */
@Service
@Transactional
public class UserServiceImpl implements IUserService {
    @Autowired
    IUserDao userDao;

    @Override
    @Cacheable("comon")
    public TblUser getUserById(String id) {
        return userDao.getUserById(id);
    }
}
